home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer Power Tools
/
Programmer Power Tools.iso
/
c
/
jazlib.arc
/
JZRSTWND.C
< prev
next >
Wrap
Text File
|
1986-05-28
|
796b
|
27 lines
/*
┌────────────────────────────────────────────────────────────────────────────┐
│ Title : jzrstwnd │
│ Purpose : Restore a window to a given set of coordinates │
│ │
│ Written by Jack Zucker - 75766,1336 301-794-5950 on 1/15/85 │
└────────────────────────────────────────────────────────────────────────────┘
*/
#include <jaz.h>
#include <jzscreen.h>
jzrstwnd ( fwindow )
TWINDOW *fwindow;
{
int wscrseg;
int wdseg;
wdseg = getds();
if (MEMB(0x40,0x49)==3) /* true if color screen */
wscrseg = 0xB800; /* color mode */
else
wscrseg = 0xB000; /* mono mode */
moves(wdseg,fwindow->buf,wscrseg,160*fwindow->row1 + (fwindow->col1 << 1),
fwindow->row2-fwindow->row1+1,fwindow->col2-fwindow->col1+1);
}